package com.yin.project.admin.rbac.service.impl;

import com.yin.project.admin.rbac.model.LoginLogEntity;
import com.yin.project.admin.rbac.repository.LoginLogRepository;
import com.yin.project.admin.rbac.service.LoginLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Eason on 2017/2/27.
 * 登录日志服务实现类
 */
@Service
public class LoginLogServiceImpl implements LoginLogService {

    @Autowired
    private LoginLogRepository loginLogRepository;

    public List<LoginLogEntity> getAll() {
       return loginLogRepository.findAll();
    }
}
